package com.study.springboot2.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

@Entity
@Table(name = "t_redis_user")
@Data
public class User extends BaseEntity implements Serializable {
    @Column(name = "name", length = 100)
    private String name;

    @Column(name = "age")
    private int age;
}
